package testcase;

import java.io.ByteArrayInputStream;
import java.util.Scanner;

import org.junit.Test;

import satir.SatirGame;
import satir.command.EnterPlayerNumCmd;

import junit.framework.TestCase;
/**
 * not yet finish
 * The Testing Class SatirGameTest_startGame.
 * 
 * @version 1.0 March 2012
 * @author Bill Chan
 * 
 */
public class SatirGameTest_startGame extends TestCase {

	/**
	 * Sets up the test fixture.
	 * 
	 * Called before every test case method.
	 */
	public void setUp() {
	}

	/**
	 * Tears down the test fixture.
	 * 
	 * Called after every test case method.
	 */
	public void tearDown() {
	}

	/**
	 * Step number: 1 
	 * Goal: Set 2 players into ArrayList
	 */
	@Test
	public void testSet2Player() {
		
		String input = "ok\nokagain";
		System.setIn(new ByteArrayInputStream(input.getBytes()));

		Scanner scanner = new Scanner(System.in);
		String inputCommandString = scanner.next();
		System.out.println(inputCommandString);
		inputCommandString = scanner.next();
		System.out.println(inputCommandString);		
		try {

			assertEquals(2, 2);
		} catch (Exception e) {
			fail("Suberting JAVA Access Protection Failure.");
		}
	}
}